#pragma once
#include "EventLoop.h"
#include "Socket.h"
#include "Channel.h"
class TcpServer {
private:
    EventLoop loop_;  // 单线程下暂时只用一个事件循环
public:
    TcpServer(const std::string &ip, const uint16_t port);
    ~TcpServer();

    void start();
};